// pages/add-bank-card/add-bank-card.scss
.add-bankcard-container {
  min-height: 100vh;
  background: #f5f5f5;
}

/* 自定义导航栏 */
.custom-nav {
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  .nav-content {
    display: flex;
    align-items: center;
    height: 88rpx;
    padding: 0 20rpx;
  }
  
  .nav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rpx 20rpx 10rpx 10rpx;
    margin-right: 10rpx;
    
    &:active {
      opacity: 0.5;
    }
    
    .back-icon {
      width: 48rpx;
      height: 48rpx;
    }
  }
  
  .nav-title {
    flex: 1;
    text-align: center;
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
    line-height: 88rpx;
  }
  
  .nav-placeholder {
    width: 68rpx;
  }
}

.form-scroll {
  height: 100vh;
  box-sizing: border-box;
}

/* OCR识别区域 */
.ocr-section {
  background: white;
  padding: 30rpx;
  margin-bottom: 20rpx;
  
  .section-title {
    font-size: 32rpx;
    font-weight: 600;
    color: #333;
    margin-bottom: 15rpx;
  }
  
  .ocr-tips {
    font-size: 24rpx;
    color: #999;
    margin-bottom: 30rpx;
    line-height: 1.5;
  }
  
  .card-upload-area {
    width: 100%;
    height: 400rpx;
    background: #f8f8f8;
    border: 2rpx dashed #ddd;
    border-radius: 16rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    
    .upload-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20rpx;
      
      .camera-icon {
        width: 80rpx;
        height: 80rpx;
      }
      
      .upload-text {
        font-size: 26rpx;
        color: #999;
      }
    }
    
    .card-preview {
      width: 100%;
      height: 100%;
      position: relative;
      
      .preview-image {
        width: 100%;
        height: 100%;
      }
      
      .preview-mask {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
        
        &:active {
          opacity: 1;
        }
        
        .remove-text {
          color: white;
          font-size: 28rpx;
          padding: 15rpx 40rpx;
          background: rgba(255, 255, 255, 0.2);
          border-radius: 8rpx;
        }
      }
      
      &:active .preview-mask {
        opacity: 1;
      }
    }
  }
  
  .ocr-btn-wrapper {
    margin-top: 30rpx;
    
    .ocr-btn {
      width: 100%;
      height: 88rpx;
      background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
      color: white;
      font-size: 30rpx;
      font-weight: 600;
      border-radius: 12rpx;
      border: none;
      
      &[disabled] {
        background: #ccc;
        opacity: 0.6;
      }
    }
  }
}

/* 表单区域 */
.form-section {
  background: white;
  padding: 30rpx;
  margin-bottom: 20rpx;
  
  .section-title {
    font-size: 32rpx;
    font-weight: 600;
    color: #333;
    margin-bottom: 30rpx;
  }
  
  .form-item {
    margin-bottom: 40rpx;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    .label {
      display: block;
      font-size: 28rpx;
      color: #333;
      margin-bottom: 20rpx;
      font-weight: 500;
    }
    
    .input {
      width: 100%;
      height: 88rpx;
      background: #f8f8f8;
      border-radius: 12rpx;
      padding: 0 30rpx;
      font-size: 28rpx;
      color: #333;
      box-sizing: border-box;
    }
    
    .picker-view {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 88rpx;
      background: #f8f8f8;
      border-radius: 12rpx;
      padding: 0 30rpx;
      
      .picker-text {
        font-size: 28rpx;
        color: #333;
      }
      
      .picker-placeholder {
        font-size: 28rpx;
        color: #999;
      }
      
      .picker-arrow {
        font-size: 28rpx;
        color: #999;
        transform: rotate(90deg);
      }
    }
    
    .radio-group {
      display: flex;
      gap: 20rpx;
      
      .radio-item {
        flex: 1;
        height: 88rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f8f8;
        border-radius: 12rpx;
        font-size: 28rpx;
        color: #666;
        border: 2rpx solid transparent;
        transition: all 0.3s;
        
        &.active {
          background: #e8f5e9;
          color: #5cb85c;
          border-color: #5cb85c;
          font-weight: 600;
        }
      }
    }
    
    .checkbox-wrapper {
      display: flex;
      align-items: center;
      gap: 20rpx;
      
      .checkbox {
        width: 40rpx;
        height: 40rpx;
        border: 2rpx solid #ddd;
        border-radius: 8rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        
        &.checked {
          background: #5cb85c;
          border-color: #5cb85c;
          
          .check-icon {
            color: white;
            font-size: 28rpx;
            font-weight: bold;
          }
        }
      }
      
      .checkbox-label {
        font-size: 28rpx;
        color: #333;
      }
    }
  }
}

/* 安全提示 */
.security-tips {
  display: flex;
  align-items: flex-start;
  gap: 15rpx;
  padding: 30rpx;
  background: white;
  margin-bottom: 20rpx;
  
  .security-icon {
    width: 32rpx;
    height: 32rpx;
    flex-shrink: 0;
    margin-top: 4rpx;
  }
  
  .security-text {
    flex: 1;
    font-size: 24rpx;
    color: #999;
    line-height: 1.6;
  }
}

/* 提交按钮 */
.submit-section {
  padding: 30rpx;
  padding-bottom: 60rpx;
  
  .submit-btn {
    width: 100%;
    height: 88rpx;
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: white;
    font-size: 32rpx;
    font-weight: 600;
    border-radius: 12rpx;
    border: none;
    
    &[disabled] {
      background: #ccc;
      opacity: 0.6;
    }
  }
}



